<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传头像</title>
</head>
<body>
    <div>
        <form method="post" action="/file/upload" enctype="multipart/form-data">
            <label>上传头像</label>
            <input type="file" name="file">
            <input type="submit" value="上传">
        </form>
    </div>
</body>
</html>